import LanguageUtils from '../../utils/LanguageUtils';
import React from 'react';
import {
  View,
  Text,
} from 'react-native';

import Config from '../../config';
import SizeUtils from '../../common/SizeUtils';
import Constants from '../../common/Constants';
import CommonWritePage from '../common/CommonWritePage';
import QZ_CreateQuanziAction from '../../actions/quanzi/QZ_CreateQuanziAction';

export default class QZ_CreatePage extends CommonWritePage {
  constructor(props) {
    super(props);

    this._itemDatas = [
      {type:"text", name:'', multiline:false, stateKey:"title", fontSize:36,
        height:SizeUtils.translateDesignHeightToCode(130), alignItems:"center", placeholder:'请输入标题(2-10个长度)',
        isNeed:true},
      {type:"text", name:'', multiline:true, stateKey:"desc", fontSize:36,
        height:SizeUtils.translateDesignHeightToCode(130), alignItems:"center", placeholder:'请输入描述(10-100个长度)',
        isNeed:true},
      {type:"uploadImage", name:'图标', imageWidth:160, imageHeight:160, imageCount:1, stateKey:"image_urls",
        height:SizeUtils.translateDesignWidthToCode(200), alignItems:"center",
        isNeed:true},
    ];

    this._updateActionName = "QZ_CreateQuanziAction";
    this._updateAction = QZ_CreateQuanziAction;
    this._successText = "创建成功,等待管理员审核";
    this._failText = "创建失败";
  }
}
